package demo3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Person {
  @Autowired
  @Qualifier("winter")
  private Clothes c;
//  Sweater s;
//    private Shirt shirt;
    public void play(){
        System.out.println("go out need:"+c);
    }
}
